﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using com.clinica.business.entities;
using com.clinica.business.BE.seguridad;
using LiclSeguridad;

namespace wesiGestClinica.Controles
{
    public partial class UCCabecera : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            UsuarioBE oUsuario = (UsuarioBE)HttpContext.Current.Session["UsuarioActual"];
            lbl_usuario.Text = oUsuario.NombreCompleto;
        }
        public Menu MenuPrincipal
        {
            get { return mnuPrincipal; }
            set { mnuPrincipal = value; }
        }


        protected void linkCerrar_Click(object sender, EventArgs e)
        {
            Session.Abandon();
            Session.Clear();
            HttpContext.Current.Response.Redirect("~/FormsLogin.aspx", true);
        }
    }
}